<#include "mcelements.ftl">
if(${input$entity} instanceof PlayerEntity) {
	Entity _ent = ${input$entity};
    BlockPos _bp = ${toBlockPos(input$x,input$y,input$z)};
    _ent.world.getBlockState(_bp).getBlock().onBlockActivated(_ent.world.getBlockState(_bp), _ent.world, _bp, (PlayerEntity) ${input$entity}, Hand.MAIN_HAND,
        BlockRayTraceResult.createMiss(new Vector3d(_bp.getX(), _bp.getY(), _bp.getZ()), Direction.UP, _bp));
}